package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author NTBK-021-1006
 *
 */
public enum FileSignStateEnum {

	UNKNOWN("未签署"), CLIENT_SIGN("客户已签署"), PLATFORM_SIGN("平台已签署"), SIGNED("已签署"), CALLBACK_ENTERPRISE("已退回"), CALLBACK_PLATFORM("已打回"), CONFIRM("已确认");

	private final String paramType;

	private FileSignStateEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 0:未签署/1:客户已签署/2:平台已签署/3:已签署/4:已退回/5:已确认
	 * @return 参数类型枚举
	 */
	public static FileSignStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}
}
